package com.ktjy.service.impl;

import com.ktjy.entity.StorageRecord;
import com.ktjy.mapper.StorageRecordMapper;
import com.ktjy.service.StorageRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("storageRecordService")
public class StorageRecordServiceImpl implements StorageRecordService {
    @Autowired
    private StorageRecordMapper storageRecordMapper;

    @Override
    @Transactional
    public int add(StorageRecord storageRecord) {
        return storageRecordMapper.add(storageRecord);
    }

    @Override
    @Transactional
    public int update(StorageRecord storageRecord) {
        return storageRecordMapper.update(storageRecord);
    }

    @Override
    @Transactional
    public int delete(StorageRecord storageRecord) {
        return storageRecordMapper.delete(storageRecord);
    }
}
